package agentFramework.tools;

import java.util.Hashtable;

import agentFramework.action.*;


public class LogData 
{
	private long								timestamp;
	private Hashtable<Integer, Action> 			agentDecisions;
	
	
	// constructor
	public LogData(long timestamp)
	{
		this.timestamp = timestamp;
		this.agentDecisions = new Hashtable<Integer, Action>();
	}
	
	// return the timestamp associated with this object
	public long getTimestamp()
	{
		return this.timestamp;
	}
	
	
	// update the data structure with the passed arguments
	public void addAction(Integer agentId, Action action)
	{
		this.agentDecisions.put(agentId, action);
	}
	
	
	// return the action associated with the given agent
	public Action getAction(Integer agentId)
	{
		return this.agentDecisions.get(agentId);
	}
}
